<?php



//测试文件
Route::get('/test', function () {
    return view('admin.layout.index');
});


//友情链接
Route::resource('/admin/link','Admin\LinkController');

// 轮播图管理
Route::resource('/admin/photo','Admin\PhotoController');
//网站配置文件
Route::resource('/admin/config','Admin\ConfigController');
Route::post('/admin/config/changcontent','Admin\ConfigController@changContent');
// 文件上传
Route::post('/admin/config/upload','Admin\ConfigController@upload');

// Route::post('/admin/config/upload','Admin\ConfigController@Upload');
// Route::post('/admin/config/do_edit','Admin\ConfigController@do_edit');
// 用户列表
Route::resource('/admin/users','Admin\UserController');

// 购物车
Route::resource('/home/cart','Home\CartController');
// 结算
Route::any('/home/cart/pays/{rowid}','Home\CartController@payGood');
//提交订单
Route::post('/home/cart/dobill','Home\CartController@dobill');
// 付款成功
Route::get('/home/cart/endpay/{rowid}','Home\CartController@endpay');
// 推荐位模块
Route::resource('/admin/recommend','Admin\RecommendController');
// 活动位模块
Route::resource('/admin/activity','Admin\ActivityController');











































































Route::resource('/admin/user',"Admin\UserController");
Route::get('/admin/index','Admin\IndexController@index');
Route::Controller('/admin/login','Admin\LoginController');

Route::group(['prefix'=>'admin','namespace'=>'Admin'],function(){
	Route::resource('admin',"AdminController");
	Route::resource('reply','ReplyController');
});




Route::Controller('/home/register','Home\RegisterController');
Route::get('/home/index','Home\IndexController@index');
Route::Controller('/home/login','Home\LoginController');
Route::Controller('/home/userinfo','Home\UserinfoController');
Route::Controller('/home/favorite','Home\FavoriteController');
Route::Controller('/home/comment','Home\CommentController');





































































































 Route::controller('/admin/cate','admin\CateController');
//商品路由
Route::resource('/admin/good','admin\GoodController');
Route::get('admin/good/delete/{gid}','admin\GoodController@delete');
Route::any('/admin/upload', 'Admin\AjController@upload');

//订单管理
Route::controller('/admin/order', 'Admin\Ordercontroller');
Route::controller('/admin/order/delete/{id}', 'Admin\Ordercontroller');
Route::controller('/admin/order/info/', 'Admin\Ordercontroller');


Route::get('get','Home\IndexController@getCatePid');
Route::get('/home/address','Home\AddressController@index');
Route::get('/home/address/edit/{bid}','Home\AddressController@edit');
Route::post('/home/address/update/{bid}','Home\AddressController@update');
Route::post('/home/address/sort','Home\AddressController@store');
Route::post('/home/address/del','Home\AddressController@del');
Route::get('/home/cate/{cid}','Home\CateController@index');
Route::get('/home/good/{gid}','Home\GoodController@index');
Route::post('/home/good/{gid}','Home\GoodController@index');


Route::post('/home/search','Home\SearchController@index');


//订单模块
Route::resource('/home/order','Home\OrderController');
Route::get('/home/order/ok/{number}','Home\OrderController@ok');
Route::get('/home/order/show/{number}','Home\OrderController@show');
Route::get('/home/order/show0/{number}','Home\OrderController@show0');













